package com.lyc;

import com.lyc.service.BookShopService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ：Xiaochen
 * @date ：Created in 2022/11/15 17:27
 * @description：
 * @modified By：
 * @version:
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext app=new ClassPathXmlApplicationContext("spring.xml");
        BookShopService shopService = app.getBean(BookShopService.class);
        shopService.purchase("1002","栗毅");
    }
}